# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-shelljob
_pkgname=shelljob
pkgver=0.6.3
pkgrel=6
pkgdesc='Run multiple subprocesses asynchronous/in parallel with streamed output/non-blocking reading. Also various tools to replace shell scripts.'
arch=('any')
url='https://pypi.org/project/shelljob/#files'
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://github.com/mortoray/shelljob/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('0beb6317aa1b964f0c8c094fa5d8951fa81b085ebcf8f7ee2535f570d5e5197b796a16bd4575b2d89586f741efb73e1036ec8e43f77067a8f4184faff1b425a2')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

